package com.xu.cloud.controller;

import com.xu.cloud.entity.User;
import com.xu.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/user-info")
    public User getUserInfo() {
        return userService.getUserInfo();
    }
}
